package com.hxzy.research.service.pageandmanager.impl;

import com.hxzy.research.mapper.TblClassMapper;
import com.hxzy.research.pojo.TblClass;
import com.hxzy.research.service.pageandmanager.AddClassManager;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class AddClassManagerImpl implements AddClassManager {
    @Autowired private TblClassMapper tblClassMapper;
    @Override
    public void addClass(TblClass tblClass) throws Exception {
        tblClassMapper.addClass(tblClass);
    }

    @Override
    public void updateClass(TblClass tblClass) throws Exception {
        tblClassMapper.updateClass(tblClass);
    }

    @Override
    public void deleteClass(Integer cid) throws Exception {
        tblClassMapper.deleteClass(cid);
    }

    @Override
    public TblClass findClassById(Integer cid) throws Exception {
        return tblClassMapper.findClassById(cid);
    }
}
